import request from 'src/utils/request'
const base_url = process.env.BASE_API

// 查询爱车列表
export function findMyCarlist(params) {
  return request.post(`${base_url}/api/faw/customervehicle/findmycar`, params)
}

// 移除爱车
export function removeMyVehicle(params) {
  return request.post(`${base_url}/api/faw/customervehicle/removevehicle`, params)
}
// 查询品牌
export function fetchBrand(params) {
  return request.post(`${base_url}/api/faw/customervehicle/querybrand`, params)
}
// 根据品牌查询车系
export function fetchChexi(params) {
  return request.post(`${base_url}/api/faw/customervehicle/querychex`, params)
}
// 根据车系查询车型
export function fetchChexing(params) {
  return request.post(`${base_url}/api/faw/customervehicle/querychexing`, params)
}
// 根据车系查询颜色
export function fetchColor(params) {
  return request.post(`${base_url}/api/faw/customervehicle/querycolor`, params)
}
// 保存
export function fetchSave(params) {
  return request.post(`${base_url}/api/faw/customervehicle/save`, params)
}
